<!DOCTYPE html>
<html lang="en">
<head>
    <title>[[OPTIONS_TITLE]]</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="initial-scale=1, width=device-width">
    <link rel="stylesheet" href="ui.css">
</head>

<body>
    <div class="prehead">
        <img src="logo.svg">
        <div class="title">
            <h1>[[EXTENSION_NAME]]</h1>
            <h2>[[EXTENSION_SUBTITLE]]</h2>
        </div>
    </div>
    <div class="header">
        <ul role="tablist">
            <li class="menuitem choices active" role="tab" tabindex="0" aria-controls="categoryListTab" aria-selected="true">[[YOUR_CHOICE]]</li>
            <li class="menuitem general" role="tab" tabindex="-1" aria-controls="generalTab" aria-selected="false">[[DISPLAY]]</li>
            <li class="menuitem rules" role="tab" tabindex="-1" aria-controls="rulesListTab" aria-selected="false">[[RULE_LIST]]</li>
            <li class="menuitem about" role="tab" tabindex="-1" aria-controls="aboutTab" aria-selected="false">[[ABOUT]]</li>
	    <div style="flex: 1 1 auto"></div>
            <li class="menuitem debug" role="tab" tabindex="-1" aria-controls="debugTab" aria-selected="false">[[DEBUG]]</li>
        </ul>
    </div>
    <div class="configurator">
        <div class="tab tab_uc" id="categoryListTab" role="tabpanel" tabindex="0">
            <div class="helptext" id="permissions" style="display:none">
                <p>
                    [[PERMISSIONS_DESCRIPTION]]:
                </p>
                <ul class="permissionslist">
                    <li><h2>[[PERMISSIONS_READ]]</h2><div>[[PERMISSIONS_READ_DETAIL]]</div></li>
                    <li><h2>[[PERMISSIONS_TABS]]</h2><div>[[PERMISSIONS_TABS_DETAIL]]</li>
                    <li><h2>[[PERMISSIONS_STORAGE]]</h2><div>[[PERMISSIONS_STORAGE_DETAIL]]</div></li>
                </ul>
                <p>
                    [[PERMISSIONS_NONE]]
                </p>
                <p>
                    <button>[[PERMISSIONS_GRANT]]</button>
                </p>                
                <div id="failedpermissions" style="display:none">
                    <em>Please note:</em>
                    [[PERMISSIONS_FAIL]]:
                    <ul>
                        <li>
                            <b>Safari (Mac)</b><br>
                            Settings > Extensions > Consent-O-Matic > Always Allow on Every Website
                        </li>
                        <li>
                            <b>Safari (iOS)</b><br>
                            Settings > Safari > Extensions > Consent-O-Matic > Permissions > All Websites > Allow
                        </li>
                    </ul>
                </div>
            </div>            
            <div class="helptext">
                [[CHOICE_DESCRIPTION]]
            </div>
            <ul class="categorylist">
                <!-- categories -->
            </ul>
        </div>
        <div class="tab tab_settings" style="display:none" id="generalTab" role="tabpanel" tabindex="0">
            <div class="helptext">
                [[DISPLAY_DESCRIPTION]]
            </div>
            <ul class="settingsList">
                <li class="hideOrPip">
                    <div>[[HIDE_OR_PIP_DESCRIPTION]]</div>
                    <form id="hideOrPip">
			<div>
				<input type="radio" name="hideOrPip" id="hop_pip" value="pip"/>
				<label for="hop_pip"><h2>Minimize</h2><img src="minimize.svg">[[HIDE_OR_PIP_PIP_LABEL]]</label>
			</div>
			<div>
				<input type="radio" name="hideOrPip" id="hop_hide" value="hide"/>
				<label for="hop_hide"><h2>Hide</h2><img src="hide.svg"> [[HIDE_OR_PIP_HIDE_LABEL]]</label>
			</div>
                    </form>
                </li>
            </ul>
        </div>
        <div class="tab tab_rl" style="display:none" id="rulesListTab" role="tabpanel" tabindex="0">
            <div class="helptext">
                [[RULES_DESCRIPTION]]
            </div>
            <ul class="rulelist">
                <!-- rulelists -->
            </ul>
            <div class="ruleoptions">
                <input id="newurl" type="url" placeholder="https://..."> <button id="urladd">[[ADD_LIST]]</button>
            </div>
            <div class="helptext" style="padding-top:0">
                <p>[[RULES_UPDATE_DESCRIPTION]]</p><button
                    id="forceupdate">[[UPDATE_RULES_NOW]]</button><br /><br /><br />
                <h2>[[RULE_GENERATOR]]</h2>
                <p>
                    [[RULE_GENERATOR_DESCRIPTION]]
                </p>
                <p>
                    <button id="rulesEditor">[[OPEN_RULE_GENERATOR]]</button>
                </p>

            </div>
        </div>
        <div class="tab tab_about" style="display:none" id="aboutTab" role="tabpanel" tabindex="0">
            <div class="helptext">
                [[ABOUT_DESCRIPTION]]
            </div>
	    <div class="saves">
		<span id="clicks">0</span> [[CLICKS_SAVED]]
	    </div>
            <table class="logList">
		<tr><th>[[CMP]]</th><th>[[POPUPS_FILLED]]</th><th>[[CLICKS_MADE]]</th></tr>
	    </table>
            <div class="logoptions">
                <button id="clearLog">[[CLEAR]]</button>
            </div>
	    <div class="helptext">
	    <h2>License</h2><br />
	    Consent-O-Matic is made available on <a href="https://github.com/cavi-au/Consent-O-Matic">Github</a> under the MIT license
<p>
MIT License
</p><p>
Copyright (c) 2019,2020,2021,2022,2023,2024 Janus Bager Kristensen and Rolf Bagge,
CAVI - Center for Advanced Visualization and Interaction, Aarhus University
</p><p>
Permission is hereby granted, free of charge, to any person obtaining a copy<br />
of this software and associated documentation files (the "Software"), to deal<br />
in the Software without restriction, including without limitation the rights<br />
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br />
copies of the Software, and to permit persons to whom the Software is<br />
furnished to do so, subject to the following conditions:<br />
</p><p>
The above copyright notice and this permission notice shall be included in all<br />
copies or substantial portions of the Software.<br />
</p><p>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
</p>
	    </div>
        </div>
        <div class="tab tab_dbg" style="display: none" id="debugTab" role="tabpanel" tabindex="0">
            <ul class="flags">
                <!-- debugflags -->
            </ul>
            <div class="helptext">
                <p>
                    <button id="clearDebugFlags">Clear Debug flags</button>
                </p>
            </div>
        </div>
    </div>
    <script src="ui.js"></script>
</body>

</html>